#pragma once

#include "../engine/Singleton.h"

namespace Putin{

class Time : public Singleton<Time>
{
public:
	friend class EngineController; // to make EngineController the only possible caller of updateFrametime()

	Time();
	double getLastFrameTime();
	double getTotalTime();

protected:
	void updateFrametime();

private:
	double mLastTime;
	double mTime;
};
}